import Mock from "mockjs";
import homeApi from "./mockServeData/home";
import userApi from "./mockServeData/user";
import permissionApi from "./mockServeData/permission";

// 拦截接口
Mock.mock(/home\/getData/, homeApi.getStatisticalData);

// 查询
Mock.mock(/user\/getUser/, userApi.getUserList);

// 新增
Mock.mock(/user\/addUser/, "post", userApi.createUser);

// 编辑
Mock.mock(/user\/editUser/, "post", userApi.updateUser);

// 删除
Mock.mock(/user\/delUser/, "post", userApi.deleteUser);

// 登录
Mock.mock(/permission\/getMenu/, "post", permissionApi.getMenu);
